package com.iwinding.ladygg.net.request;

import com.iwinding.ladygg.constant.Constant;
import com.iwinding.ladygg.utils.DateUtil;

/**
 * Created by hezhiyong on 2017/3/24.
 */

public class TokenReq {
    public String client_id;//客户端id
    public String client_secret;//客户端密钥
    public String grant_type = "authorization_code";//授权类型
    public String code;//授权code
    public String redirect_uri;//跳转地址
    public String reqTime;//请求时间

    public TokenReq(String code){
        client_id = Constant.SystemInfo.CLIENT_ID;
        client_secret = Constant.SystemInfo.CLIENT_SECRET;
        this.code = code;
        redirect_uri = "http://127.0.0.1";
        reqTime = String.valueOf(DateUtil.getCurrentTime());
    }


}
